<?php
declare(strict_types=1);

namespace SixShop\PHPInfo\Hook;

use SixShop\Core\Attribute\Hook;
use SixShop\PHPInfo\Middleware\AppendSqlDebugMiddleware;
use think\App;
use think\event\HttpRun;

class PhpinfoHook
{

    public function __construct(private App $app)
    {

    }
    #[Hook(HttpRun::class)]
    public function appendSqlDebug(): void
    {
        $this->app->middleware->add(AppendSqlDebugMiddleware::class);
    }
}